﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SlidingNavigation.ascx.cs" Inherits="UserControlSupport_SlidingNavigation" %>

<ul id="sliding-navigation">
    <li class="sliding-element"><h3>Sản Phẩm Nổi Bật</h3></li>
    <li class = 'sliding-element'> <a href ='Default.aspx?catalogy=new'>Mới Nhất</a>
    <li class = 'sliding-element'> <a href ='Default.aspx?catalogy=mostview'>Xem Nhiều Nhất</a>
    <li class="sliding-element"><h3>PHÂN LOẠI</h3></li>
    <% 
        String[] s = GetType();
        int count = 0;
        while (s[count] != null)
        {
            Response.Write("<li class = 'sliding-element'> <a href ='Default.aspx?catalogy=type&id=" + s[count] + "' >" + s[count] + "</a></li>");
            count++;
        }
    %>
    <li class="sliding-element"><h3>Thời Trang</h3></li>
    <% 
        s = GetUsefor();
        count = 0;
        while (s[count] != null)
        {
            Response.Write("<li class = 'sliding-element'> <a href = 'Default.aspx?catalogy=usefor&id=" + s[count] + "' >" + s[count] + "</a></li>");
            count++;
        }
    %>
    <li class="sliding-element"><h3>Giới Tính</h3></li>
    <% 
        s = GetGender();
        count = 0;
        while (s[count] != null)
        {
            Response.Write("<li class = 'sliding-element'> <a href = 'Default.aspx?catalogy=gender&id=" + s[count] + "' >" + s[count] + "</a></li>");
            count++;
        }
    %>
</ul>

